package com.guigu.eduservice.mapper;

import com.guigu.eduservice.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 权限表（存储系统所有功能权限） Mapper 接口
 * </p>
 *
 * @author janecraft
 * @since 2025-09-27
 */
@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {

    //连接查询角色权限关联表和权限表
    List<Permission> getPermissionsByRoleId(Long roleId);
}

